<?php
	class commonControl extends Control{
		/**
		 * 自定义构造函数
		 */
		public function __auto(){
			$this->checkLockFile();
			if(!isset($_SESSION['step'])){
				$_SESSION['step'] = 0;
			}
			$setpArr = include PATH_APP . '/data/setup.php';
			$this->assign("setup", $setpArr);
		}
		/**
		 * 检查锁文件
		 */
		public function checkLockFile(){
			if(is_file(PATH_ROOT.'/install/lock')){
				header("Content-type:text/html;charset=utf8");
				$str = "<div style='border:1px solid #ccc;width:50%;padding:20px;font-weight:bold;'>→_→系统已经安装，如需重新安装，请删除install目录中的lock.php文件</div>";
				exit($str);
			}
		}
	}

?>